package com.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@TableName("bl_role")
public class Role {

    @TableId
    private Long roleId;

    @NotEmpty(message = "权限组名不能为空")
    @Size(min = 2, max = 20, message = "权限组名长度必须大于2个字小于20个字")
    @ApiModelProperty("权限组名称")
    private String name;

    @ApiModelProperty("权限信息")
    private String rules;

    @ApiModelProperty("创建时间")
    private String crteateTime;

    @ApiModelProperty("更新时间")
    private String updateTime;

    @ApiModelProperty("状态")
    private int status;
}
